// 定义一个函数，用于选择智能体并显示在页面上
function selectAgent(agentName) {
  var selectedAgentNameElement = document.getElementById('selectedAgentName');
  selectedAgentNameElement.innerText = agentName;

  // 更新选中状态样式
  var cards = document.querySelectorAll('.agent-card');
  cards.forEach(card => {
    if (card.dataset.id === agentName.toLowerCase().replace(/\s+/g, '-')) {
      card.classList.add('selected');
    } else {
      card.classList.remove('selected');
    }
  });
}

// 定义确认选择的函数，点击按钮时弹出提示
function confirmSelection() {
  alert("选择成功");
}
